package com.uraurora.crescent.primary.self;

/**
 * @author : gaoxiaodong04
 * @program : netty-demo-echo
 * @date : 2020-06-08 10:46
 * @description :
 */
public final class OtherLeafSelf extends MiddleSelf<OtherLeafSelf> {
    @Override
    OtherLeafSelf self() {
        return this;
    }

    public OtherLeafSelf leafMethod(){
        // do other things
        System.out.println("other leaf method");
        return self();
    }

    public static void main(String[] args) {
        LeafSelf leafSelf = new LeafSelf().base().where().leafMethod().endWhere();
        OtherLeafSelf otherLeafSelf = new OtherLeafSelf();
    }
}
